
// 自动生成模板Coupons
package coupons
import (
	"time"
)

// coupons表 结构体  Coupons
type Coupons struct {
    Id  *int `json:"id" form:"id" gorm:"primarykey;column:id;comment:;size:20;"`  //id字段 
    CreatedAt  *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;comment:;"`  //createdAt字段 
    UpdatedAt  *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;comment:;"`  //updatedAt字段 
    DeletedAt  *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;comment:;"`  //deletedAt字段 
    UserId  *int `json:"userId" form:"userId" gorm:"column:user_id;comment:用户id;size:10;"`  //用户id 
    CouponTitle  *string `json:"couponTitle" form:"couponTitle" gorm:"column:coupon_title;comment:优惠卷标题;size:100;"`  //优惠卷标题 
    CouponIntroduce  *string `json:"couponIntroduce" form:"couponIntroduce" gorm:"column:coupon_introduce;comment:优惠卷详情;size:200;"`  //优惠卷详情 
    CouponExpiration  *string `json:"couponExpiration" form:"couponExpiration" gorm:"column:coupon_expiration;comment:'优惠卷过期时间;size:100;"`  //'优惠卷过期时间 
    CouponStatus  *int `json:"couponStatus" form:"couponStatus" gorm:"column:coupon_status;comment:优惠卷类型;size:10;"`  //优惠卷类型 
    DiscountValue  *float64 `json:"discountValue" form:"discountValue" gorm:"column:discount_value;comment:优惠价格;size:10;"`  //优惠价格 
}


// TableName coupons表 Coupons自定义表名 coupons
func (Coupons) TableName() string {
    return "coupons"
}





